package com.alks.entity.data.entity;

import com.alks.entity.deserializer.LocalDateTimeDeserialize;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-05-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("PC_ORDER_HEAD")
@ApiModel(value="PcOrderHead对象", description="")
public class PcOrderHead implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公司ID")
    @TableId(value = "COMPANY_ID", type = IdType.NONE)
    private String companyId;

    @ApiModelProperty(value = "指令")
    private String orderId;

    private String shoeName;

    private String devPerson;

    private String samplePerson;

    private String mtlPerson;

    @ApiModelProperty(value = "型体")
    private String style;

    @ApiModelProperty(value = "颜色")
    private String color;

    @ApiModelProperty(value = "订单数量")
    private BigDecimal orderQty;

    private BigDecimal mailQty;

    private BigDecimal shipQty;

    private String brand;

    @ApiModelProperty(value = "创建人")
    private String sysUser;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDateTime sysDate;

    @ApiModelProperty(value = "下单日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDateTime orderDate;

    private String sockNo;

    @ApiModelProperty(value = "楦头")
    private String lastNo;

    @ApiModelProperty(value = "大底")
    private String moldNo;

    @ApiModelProperty(value = "号码")
    private String sizeNo;

    private String sampleType;

    @ApiModelProperty(value = "季节")
    private String seasonType;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @JsonDeserialize(using = LocalDateTimeDeserialize.class)
    private LocalDateTime deliveryDate;

    private String closeFlag;

    private String closeUser;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDateTime closeDate;

    private String moldSeq;

    private String custStyle;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "图片地址")
    private String photoPath;

    private String bomQty;

}
